package study.java.jdk.jdk8._1_stream.terminal.short_circuiting;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

@Slf4j
public class findAny_Test {

    @Test
    public void test1() {
        List<String> src = Arrays.asList("apple", "banana", "orange");
        String dest = src.stream()
                .findAny()
                .get();
        log.info("{}", dest);
    }
}
